<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-category_id" data-rule="required" data-source="category/selectpage" data-order-by="weigh desc" data-params='{"custom[pid]":"47","custom[status]":"normal"}' class="form-control selectpage" name="row[category_id]" type="text" value="{$row.category_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Newhouse_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-newhouse_id" data-rule="required" data-source="newhouse/selectpage" class="form-control selectpage" name="row[newhouse_id]" type="text" value="{$row.newhouse_id|htmlentities}">
        </div>
    </div>
    <div class="form-group newhouse_layout_class" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Newhouse_layout_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-newhouse_layout_id" data-rule="required" data-source="newhouse_layout/index" class="form-control selectpage" name="row[newhouse_layout_id]" type="text" value="{$row.newhouse_layout_id|htmlentities}">
        </div>
    </div>
    <div class="form-group fovi_class" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fovi')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-fovi" class="form-control selectpicker" name="row[fovi]">
                {foreach name="foviList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.fovi"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-url" data-rule="required" class="form-control" name="row[url]" type="text" value="{$row.url|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Describe')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-describe" class="form-control" name="row[describe]" value="{$row.describe|htmlentities}" type="text" placeholder="20字内" maxlength="20">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group" style="display: flex;">
                <input id="c-pic" class="form-control" size="50" name="row[pic]" value="{$row.pic|htmlentities}" data-rule="required" type="hidden">
                <div class="input-group no-border no-padding">
                    <span><button type="button" id="plupload-pic" class="btn btn-danger plupload" data-multipart={"module":"h/pic"} data-maxcount="1" data-maxsize="500k" data-input-id="c-pic" data-mimetype="image/jpeg,image/png,image/jpg" data-preview-id="p-pic"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-pic"></span>
                <span style="margin: 7px 10px;display: block;">尺寸：480*360，比例4:3，小于500kb</span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-pic"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Flag')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-flag" data-rule="required" class="form-control selectpicker" name="row[flag]">
                {foreach name="flagList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.flag"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
